

#ifndef __APP_SEGMENTER
#define __APP_SEGMENTER



#include "ofMain.h"
#include "ofxDirList.h"

#include "abliefern/VanishingPoint.h"
#include "abliefern/Segment.h"
#include "abliefern/Point2f.h"
#include "abliefern/Databaser.h"

#include "abliefern/SegmentOracle.h"


#include <vector>
#include <algorithm>



class AppSegmenter : public ofBaseApp{
	
public:
	
	void setup();
	void update();
	void draw();
	
	void keyPressed  (int key);
	void keyReleased(int key);
	void mouseMoved(int x, int y );
	void mouseDragged(int x, int y, int button);
	void mousePressed(int x, int y, int button);
	void mouseReleased(int x, int y, int button);
	void resized(int w, int h);
	


	
private:
		
	abliefern::Databaser _myDatabaser;
	abliefern::SegmentOracle** _myThreads;
	
	bool _myIAmFinished;
	
	
	std::string _myInputPath;
	std::string _mySvgPath;
	std::string _myOutputPath;
	
	std::string _myOutputSuffix;
};

#endif
